package chp08.ext;

public class Ext3 {

    public static void main(String[] args) {
        int[][] map = {
                {1,0,0,0,0},
                {0,0,0,0,0},
                {0,0,0,0,0},
                {0,0,0,0,0},
                {0,0,0,0,0}
        };

        for (int i = 0; i < map.length; i++) {
            for (int j = 0; j < map[0].length; j++) {
//                System.out.print(map[i][j]+"\t");
                switch (map[i][j]){
                    case 0:
                        System.out.print("_\t");
                        break;
                    case 1:
                        System.out.print("@\t");
                        break;
                }
            }
            System.out.println();
        }
    }
}
